﻿using System.Collections.Generic;

namespace CleanArchitecture.Infrastructure.Models.Business.Columns
{
    /// <summary>
    /// 前端用于展示文章/图片等所属分类的数据结构 基于前端 layui- xm-select组件
    /// </summary>
    public class ColumnTreeItemModel
    {
        public ColumnTreeItemModel()
        {
            children = new List<ColumnTreeItemModel>();
        }
        public int id { get; set; }
        public int pid { get; set; }
        public string title { get; set; }
        public string language { get; set; }
        public string name { get => title; }
        public int value { get => id; }
        public string url { get; set; }
        public int level { get; set; }
        public int displayorder { get; set; }
        public string layouttype { get; set; }
        public string layoutlisttemplate { get; set; }
        public string layoutdetailtemplate { get; set; }
        public IList<ColumnTreeItemModel> children { get; set; }
    }
}
